package com.apex.common.constant;

public class CommonConstants {

    public final static String RESOURCE_TYPE_MENU = "menu";

    public final static String RESOURCE_TYPE_BTN = "button";

    public static final String EX_TOKEN_ERROR_CODE = "40301";

    // 用户token异常
    public static final String EX_USER_INVALID_CODE = "40302";
    // 客户端token异常
    public static final String EX_CLIENT_INVALID_CODE = "40331";

    public static final String EX_CLIENT_FORBIDDEN_CODE = "40341";

    public static final String EX_OTHER_CODE = "500";

    public static final String CONTEXT_KEY_USER_ID = "currentUserId";

    public static final String CONTEXT_KEY_USERNAME = "currentUserName";

    public static final String CONTEXT_KEY_USER_NAME = "currentUser";

    public static final String CONTEXT_KEY_USER_TOKEN = "currentUserToken";

    public static final String CONTEXT_KEY_USER_TYPE="currentUserType";

    public static final String JWT_KEY_USER_ID = "userId";

    public static final String JWT_KEY_NAME = "name";

    public static final String JWT_KEY_USER_TYPE="userType";

    public static final String JWT_KEY_TIME="time";

    public static final String MENU_TREE="treeMenu";

}
